# -- coding: utf-8 -- 
# Name: app

from flask import Flask,flash,url_for,render_template
from forms import BaseLogin

import config

app = Flask(__name__)
app.config.from_object(config)
@app.route("/login",methods=('GET','pOST'))
def baselogin():
    form = BaseLogin()
    if form.validate_on_submit():
        flash(form.name.data+"|"+form.oassword.data)
        return "submit success"
    else:
        return render_template('login.html', form=form)

@app.route('/')
def hello_world():
    return 'hello world'


if __name__ == '__main__':
    app.run(debug=True)


